package ch.vd.dec.selt.petale

class TypeAutorisation {

	String name
	String abbr

	static mapping = {
		table 'TTY_AUT_FAC'
		name column:'name'
		abbr column:'abbr'
		id generator:'sequence', params:[sequence: 'TTY_AUT_FAC_SEQ']
		version true
	}

    static constraints = {
		name(blank: false, maxSize: 255, unique: true)
		abbr(blank: false, maxSize: 20, unique: true)
    }
	
	String toString(){
		return name
	}
}
